using MediatR;
using Warehouse.Dto;

namespace Warehouse.API.APP.Commands
{
    /// <summary>
    /// 创建调拨单命令
    /// </summary>
    public class CreateAllocationCommand : IRequest<CreateAllocationResponse>
    {
        public string TransferType { get; set; } = string.Empty;
        public DateTime ApplyDate { get; set; }
        public int FromWarehouseId { get; set; }
        public int ToWarehouseId { get; set; }
        public string? HandlerName { get; set; }
        public string? ApplicantName { get; set; }
        public string? Remark { get; set; }
        public bool SkipValidation { get; set; } = true;
        public List<CreateAllocationLineDto> Lines { get; set; } = new();
    }
}

